[USER (data scientist)]: How can I populate the table with the win-loss records from head-to-head matches? given the solution of this question, please also answer: could you tell me who has competed in head-to-head matches against both Medvedev D. and Djokovic N.?

A. Federer R.
B. Nadal R.
C. Alcaraz C.
D. Cilic M.
E. None of above

[YOU (AI assistant)]: